home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in1.uu.net!nih-csl!postman
- From: Dean Fuqua <dfuqua@raleigh.ibm.com>
- Subject: class self destuction???
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <1996Feb20.152904.13555@alw.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Nntp-Posting-Host: socks2.raleigh.ibm.com
- Content-Transfer-Encoding: 7bit
- Organization: National Institutes of Health
- Mime-Version: 1.0
- Date: Tue, 20 Feb 1996 15:29:04 GMT
- X-Mailer: Mozilla 1.12 (X11; I; AIX 1)
- X-Url: news: comp.lang.c++
-
- I was wondering what the *correct* method of class suicide is.
- For example, while in a member function, a class realizes that
- it is no longer wanted in little computing world and that it should
- kill itself.
-
- Should it call it own destuctor and that's that or should it do delete(this).
- The delete method seems a bit dangerous to me.
-
- TIA,
- Dean Fuqua
-
-